//
//  MineTableViewCell.m
//  ProjectOfBStage
//
//  Created by cuixin on 15/11/12.
//  Copyright © 2015年 cuixin. All rights reserved.
//

#import "MineTableViewCell.h"

#define KWIDTH ([UIScreen mainScreen].bounds.size.width/375)
#define KHEIGHT ([UIScreen mainScreen].bounds.size.height/667)

@implementation MineTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.picImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.picImageView];
        [self.picImageView release];
        
        self.titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.titleLabel];
        [self.titleLabel release];
    }
    
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.picImageView.frame = CGRectMake(KWIDTH * 25, KHEIGHT * 7, KWIDTH * 30, KWIDTH * 30);
    
    self.titleLabel.frame = CGRectMake(KWIDTH * 50 + self.picImageView.frame.size.width, KHEIGHT * 7, KWIDTH * 150, KHEIGHT * 30);
}


@end
